import fetch from '@/api'


// 查询
export function getAccountGroupList(params) {
    return fetch({
        method: 'get',
        url: '/cargoOwnerAccountGroup',
        params
    })
}


// 新增
export function addAccountGroup(data) {
    return fetch({
        method: 'post',
        url: `/cargoOwnerAccountGroup`,
        data
    })
}

// 编辑
export function updateAccountGroup(id, data) {
    return fetch({
        method: 'put',
        url: `/cargoOwnerAccountGroup/${id}`,
        data,
    })
}


// 根据ID删除账户
export function delAccountGroup(id) {
    return fetch({
        method: 'delete',
        url: `/cargoOwnerAccountGroup/${id}`,
    })
}


// 账户总数
export function getAccountGroupTotal(params) {
    return fetch({
        method: 'get',
        url: '/cargoOwnerAccountGroup/natureStatistics',
        params
    })
}


